package com.example.demoface.utils;
import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import com.aliyun.oss.model.*;


import java.util.List;

import static javax.crypto.Cipher.SECRET_KEY;

public class ChinaTeleComFile {
    public static void main(String[] args) {

        String endpoint = "";
        String accessKeyId = "";
        String accessKeySecret = "";

        String bucketName = "wqwqwqq";

        // 创建 OSS 客户端
        OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);

        PutObjectRequest putObjectRequest = new PutObjectRequest("wqwqwqq", "asa", new java.io.File("C:\\Users\\chengyang\\Downloads\\ZOS对象存储Java_SDK使用手册 (1).pdf"));
        PutObjectResult putObjectResult = ossClient.putObject(putObjectRequest);
        System.out.println(1);


    }




}
